package com.phiture.erp.produce.core.pojo.vo;

import com.phiture.erp.produce.dal.entity.ErpProduceRoutingDetailDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import java.math.BigDecimal;

@Schema(description = "管理后台 - 工艺路线新增/修改 Request VO")
@Data
public class ErpProduceRoutingSaveReqVO {

    @Schema(description = "ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "2983")
    private Long id;

    @Schema(description = "工艺路线名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "工艺路线名称不能为空")
    private String routingName;

    @Schema(description = "物料编码", requiredMode = Schema.RequiredMode.REQUIRED, example = "17869")
    @NotNull(message = "物料编码不能为空")
    private Integer materialId;

    @Schema(description = "描述", example = "你说的对")
    private String description;

    @Schema(description = "状态", example = "2")
    private Integer status;

    @Schema(description = "总时间")
    private Integer totalLeadTime;

    @Schema(description = "总工价", example = "7116")
    private BigDecimal totalProcessPrice;

    @Schema(description = "工艺路线明细列表")
    private List<ErpProduceRoutingDetailDO> produceRoutingDetails;

}